package com.project.commom.exception;

import lombok.Data;

/**
 * 自定义异常类
 * 
 * @author oKong
 *
 */
@Data
public class CommonException extends RuntimeException {

    /**
     * 
     */
    private static final long serialVersionUID = -3030344392591938285L;

    int code;

    String msg;

    public CommonException(int code, String msg) {
        super(code + msg);
        this.code = code;
        this.msg = msg;
    }
}
